package com.mioto.ld.module.center.controller;

import com.mioto.ld.module.center.service.DataCenterService;
import com.mioto.ld.result.ResultData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author mioto-qinxj
 * @date 2024/7/9
 * @desc
 */
@RestController
@RequestMapping("dataCenter")
@Api(tags = "数据大屏")
public class DataCenterController {
    @Resource
    private DataCenterService dataCenterService;

    @GetMapping("/statistics")
    @ApiOperation(value="设备数据中心")
    public ResultData deviceSaleStatistics (){
        return ResultData.success(dataCenterService.dataCenter());
    }
}
